package com.zhny.sensor.service;

import com.zhny.sensor.dao.ToMarketDao;
import com.zhny.sensor.entity.ToMarket;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ToMarketService {
    @Autowired
    private ToMarketDao toMarketDao;

    public ToMarket queryByStallCodeAnalysis(String stallCodeAnalysis){
        List<ToMarket> list = toMarketDao.queryByStallCodeAnalysis(stallCodeAnalysis);
        return list.isEmpty()?null:list.get(0);
    }
}
